package com.wstuo.common.config.util;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

/**
 *  监听
 * @author Will
 *
 */
public class AppliactionScheduledListener implements ServletContextListener {
	
	public static WebApplicationContext ctx=null;
	//@Override
	public void contextDestroyed(ServletContextEvent arg0) {
	
	}
	//@Override
	public void contextInitialized(ServletContextEvent event) {
		ctx = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
		
		
	}
}
